#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
const int N=2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define close(); std::ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
//----------------------------------------------------------------------------//

int a,b;
int main()
{
	close();
	cin>>a>>b;
	
	int sum=a+b;
	cout<<sum-16<<'\n';
	cout<<sum-3<<'\n';
	cout<<sum-1<<'\n';
	cout<<sum<<'\n';
	return 0;
}
